#include <vector>
#include "IDrawEvent.h"

using namespace std;


IDrawEvent::IDrawEvent(){
	dlist->push_back(this);
}

void IDrawEvent::drawAll(){

	vector<IDrawEvent*>::iterator i;

	for (i = dlist->begin(); i < dlist->end(); i++)
		(*i)->draw();
}

std::vector<IDrawEvent*> *IDrawEvent::dlist = new vector<IDrawEvent*>();
